package org.ljy.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {

    // ------ 人员模块错误码 --------
    ErrorCode REGISTER_INFO_IS_EMPTY = new ErrorCode(100,"注册信息为空");

    ErrorCode EMAIL_ERROR = new ErrorCode(101,"邮箱格式错误");
    ErrorCode PHONE_ERROR = new ErrorCode(102,"手机号格式错误");
    ErrorCode IDENTITY_ERROR = new ErrorCode(103,"用户身份错误");
    ErrorCode PASSWORD_IS_EMPTY = new ErrorCode(104,"管理员密码为空");
    ErrorCode PASSWORD_ERROR = new ErrorCode(105,"用户密码错误");

    ErrorCode EMAIL_USED = new ErrorCode(106,"邮箱已被使用");
    ErrorCode PHONE_USED = new ErrorCode(107,"手机号已被使用");
    ErrorCode PARAM_ERROR = new ErrorCode(108,"参数错误");
    ErrorCode RETURN_ERROR = new ErrorCode(109,"数据不存在");
    ErrorCode VERIFICATION_CODE_ERROR = new ErrorCode(109,"验证码错误");



    // ------ 奖品模块错误码 --------


    // ------ 活动模块错误码 --------
    ErrorCode ACTIVITY_CREATE_ERROR = new ErrorCode(300,"活动创建失败");
    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(301,"活动人员异常");
    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(302,"活动奖品异常");
    ErrorCode USER_PRIZE_AMOUNT_ERROR = new ErrorCode(303,"获奖人数大于奖品数量");
    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR = new ErrorCode(304,"获奖人数大于奖品数量");
    ErrorCode ACTIVITY_ERROR = new ErrorCode(305,"活动不存在");
    ErrorCode ACTIVITY_ID_ERROR = new ErrorCode(306,"活动参数为空");
    ErrorCode REDIS_ACTIVITY_ERROR = new ErrorCode(307,"缓存中不存在该活动");
    ErrorCode STATUS_CONVERT_ERROR = new ErrorCode(308,"状态转换失败");



    // ------ 抽奖错误码 --------
    ErrorCode DRAW_ACTIVITY_PRIZE_ERROR = new ErrorCode(307,"抽奖活动或奖品不存在");
    ErrorCode ACTIVITY_IS_PASS = new ErrorCode(307,"抽奖活动已过期");
    ErrorCode PRIZE_IS_PASS = new ErrorCode(307,"奖品已被抽取");
    ErrorCode PRIZE_WINNER_COUNT_ERROR = new ErrorCode(307,"中奖人数和奖品数量不一致");




    // ------ 图片错误码 --------
    ErrorCode PIC_UPLOAD_ERROR = new ErrorCode(501,"上传图片失败");
}
